portableSql

AllTrim Portable SQL Function

Syntax

AllTrim as C (String as C)

Arguments

StringCharacter

A field or value.

Returns

resultCharacter

Returns a string with all leading and trailing white space trimmed.

Description

Trim all leading and trailing white space.

Discussion

The AllTrim function trims all leading and trailing white space from a string.

AllTrim() function executed on the Northwind Access database
SELECT FIRST 1 AllTrim('   Boston   ') AS Expr1 FROM Customers
=Boston